package com.twu.biblioteca;

public class Movie extends Item {

    int year;
    String director;
    int rating;

    public Movie(String ttle, int yr, String dir, int rat) {
        title = ttle;
        year = yr;
        director = dir;
        rating = rat;
        available = true;
    }

    public int getYear() { return year; }
    public void setYear(int i) { year = i; }

    public String getDirector() { return director; }
    public void setDirector(String d) { director = d; }

    public int getRating() { return rating; }
    public void setRating(int i) { rating = i; }

    @Override
    public String getType() {
        return "movie";
    }
}
